/*
 * CanvasFormTest.java
 * JMUnit based test
 *
 * Created on Aug 10, 2011, 5:10:22 PM
 */
import javax.microedition.lcdui.*;
import jmunit.framework.cldc10.*;

/**
 * @author Alejo
 */
public class CanvasFormTest extends TestCase {
    
    public CanvasFormTest() {
        //The first parameter of inherited constructor is the number of test cases
        super(22, "CanvasFormTest");
    }    
    
    public void test(int testNumber) throws Throwable {
        switch (testNumber) {
            case 0:
                testKeyReleased();
                break;
            case 1:
                testPointerReleased();
                break;
            case 2:
                testCommandAction();
                break;
            case 3:
                testPaint();
                break;
            case 4:
                testSetMapmatrix();
                break;
            case 5:
                testKeyRepeated();
                break;
            case 6:
                testPointerDragged();
                break;
            case 7:
                testMovIzquierda();
                break;
            case 8:
                testGetYr();
                break;
            case 9:
                testGetPy();
                break;
            case 10:
                testGetPx();
                break;
            case 11:
                testGetMapmatrix();
                break;
            case 12:
                testPointerPressed();
                break;
            case 13:
                testMovAbajo();
                break;
            case 14:
                testMovArriba();
                break;
            case 15:
                testKeyPressed();
                break;
            case 16:
                testMovDerecha();
                break;
            case 17:
                testGetXr();
                break;
            case 18:
                testSetPx();
                break;
            case 19:
                testSetYr();
                break;
            case 20:
                testSetPy();
                break;
            case 21:
                testSetXr();
                break;
            default:
                break;
        }
    }

    /**
     * Test of testKeyReleased method, of class CanvasForm.
     */
    public void testKeyReleased() throws AssertionFailedException {
        System.out.println("keyReleased");
        CanvasForm instance = new CanvasForm();
        int keyC_1 = 0;
        instance.keyReleased(keyC_1);
        fail("The test case is a prototype.");
    }

    /**
     * Test of testPointerReleased method, of class CanvasForm.
     */
    public void testPointerReleased() throws AssertionFailedException {
        System.out.println("pointerReleased");
        CanvasForm instance = new CanvasForm();
        int x_1 = 0;
        int y_1 = 0;
        instance.pointerReleased(x_1, y_1);
        fail("The test case is a prototype.");
    }

    /**
     * Test of testCommandAction method, of class CanvasForm.
     */
    public void testCommandAction() throws AssertionFailedException {
        System.out.println("commandAction");
        CanvasForm instance = new CanvasForm();
        Command c_1 = null;
        Displayable d_1 = null;
        instance.commandAction(c_1, d_1);
        fail("The test case is a prototype.");
    }

    /**
     * Test of testPaint method, of class CanvasForm.
     */
    public void testPaint() throws AssertionFailedException {
        System.out.println("paint");
        CanvasForm instance = new CanvasForm();
        Graphics g_1 = null;
        instance.paint(g_1);
        fail("The test case is a prototype.");
    }

    /**
     * Test of testSetMapmatrix method, of class CanvasForm.
     */
    public void testSetMapmatrix() throws AssertionFailedException {
        System.out.println("setMapmatrix");
        CanvasForm instance = new CanvasForm();
        int[][] mapmatrix_1 = null;
        instance.setMapmatrix(mapmatrix_1);
        fail("The test case is a prototype.");
    }

    /**
     * Test of testKeyRepeated method, of class CanvasForm.
     */
    public void testKeyRepeated() throws AssertionFailedException {
        System.out.println("keyRepeated");
        CanvasForm instance = new CanvasForm();
        int keyC_1 = 0;
        instance.keyRepeated(keyC_1);
        fail("The test case is a prototype.");
    }

    /**
     * Test of testPointerDragged method, of class CanvasForm.
     */
    public void testPointerDragged() throws AssertionFailedException {
        System.out.println("pointerDragged");
        CanvasForm instance = new CanvasForm();
        int x_1 = 0;
        int y_1 = 0;
        instance.pointerDragged(x_1, y_1);
        fail("The test case is a prototype.");
    }

    /**
     * Test of testMovIzquierda method, of class CanvasForm.
     */
    public void testMovIzquierda() throws AssertionFailedException {
        System.out.println("movIzquierda");
        CanvasForm instance = new CanvasForm();
        instance.movIzquierda();
        fail("The test case is a prototype.");
    }

    /**
     * Test of testGetYr method, of class CanvasForm.
     */
    public void testGetYr() throws AssertionFailedException {
        System.out.println("getYr");
        CanvasForm instance = new CanvasForm();
        int expResult_1 = 0;
        int result_1 = instance.getYr();
        assertEquals(expResult_1, result_1);
        fail("The test case is a prototype.");
    }

    /**
     * Test of testGetPy method, of class CanvasForm.
     */
    public void testGetPy() throws AssertionFailedException {
        System.out.println("getPy");
        CanvasForm instance = new CanvasForm();
        int expResult_1 = 0;
        int result_1 = instance.getPy();
        assertEquals(expResult_1, result_1);
        fail("The test case is a prototype.");
    }

    /**
     * Test of testGetPx method, of class CanvasForm.
     */
    public void testGetPx() throws AssertionFailedException {
        System.out.println("getPx");
        CanvasForm instance = new CanvasForm();
        int expResult_1 = 0;
        int result_1 = instance.getPx();
        assertEquals(expResult_1, result_1);
        fail("The test case is a prototype.");
    }

    /**
     * Test of testGetMapmatrix method, of class CanvasForm.
     */
    public void testGetMapmatrix() throws AssertionFailedException {
        System.out.println("getMapmatrix");
        CanvasForm instance = new CanvasForm();
        int[][] expResult_1 = null;
        int[][] result_1 = instance.getMapmatrix();
        assertEquals(expResult_1, result_1);
        fail("The test case is a prototype.");
    }

    /**
     * Test of testPointerPressed method, of class CanvasForm.
     */
    public void testPointerPressed() throws AssertionFailedException {
        System.out.println("pointerPressed");
        CanvasForm instance = new CanvasForm();
        int x_1 = 0;
        int y_1 = 0;
        instance.pointerPressed(x_1, y_1);
        fail("The test case is a prototype.");
    }

    /**
     * Test of testMovAbajo method, of class CanvasForm.
     */
    public void testMovAbajo() throws AssertionFailedException {
        System.out.println("movAbajo");
        CanvasForm instance = new CanvasForm();
        instance.movAbajo();
        fail("The test case is a prototype.");
    }

    /**
     * Test of testMovArriba method, of class CanvasForm.
     */
    public void testMovArriba() throws AssertionFailedException {
        System.out.println("movArriba");
        CanvasForm instance = new CanvasForm();
        instance.movArriba();
        fail("The test case is a prototype.");
    }

    /**
     * Test of testKeyPressed method, of class CanvasForm.
     */
    public void testKeyPressed() throws AssertionFailedException {
        System.out.println("keyPressed");
        CanvasForm instance = new CanvasForm();
        int keyC_1 = 0;
        instance.keyPressed(keyC_1);
        fail("The test case is a prototype.");
    }

    /**
     * Test of testMovDerecha method, of class CanvasForm.
     */
    public void testMovDerecha() throws AssertionFailedException {
        System.out.println("movDerecha");
        CanvasForm instance = new CanvasForm();
        instance.movDerecha();
        fail("The test case is a prototype.");
    }

    /**
     * Test of testGetXr method, of class CanvasForm.
     */
    public void testGetXr() throws AssertionFailedException {
        System.out.println("getXr");
        CanvasForm instance = new CanvasForm();
        int expResult_1 = 0;
        int result_1 = instance.getXr();
        assertEquals(expResult_1, result_1);
        fail("The test case is a prototype.");
    }

    /**
     * Test of testSetPx method, of class CanvasForm.
     */
    public void testSetPx() throws AssertionFailedException {
        System.out.println("setPx");
        CanvasForm instance = new CanvasForm();
        int px_1 = 0;
        instance.setPx(px_1);
        fail("The test case is a prototype.");
    }

    /**
     * Test of testSetYr method, of class CanvasForm.
     */
    public void testSetYr() throws AssertionFailedException {
        System.out.println("setYr");
        CanvasForm instance = new CanvasForm();
        int yr_1 = 0;
        instance.setYr(yr_1);
        fail("The test case is a prototype.");
    }

    /**
     * Test of testSetPy method, of class CanvasForm.
     */
    public void testSetPy() throws AssertionFailedException {
        System.out.println("setPy");
        CanvasForm instance = new CanvasForm();
        int py_1 = 0;
        instance.setPy(py_1);
        fail("The test case is a prototype.");
    }

    /**
     * Test of testSetXr method, of class CanvasForm.
     */
    public void testSetXr() throws AssertionFailedException {
        System.out.println("setXr");
        CanvasForm instance = new CanvasForm();
        int xr_1 = 0;
        instance.setXr(xr_1);
        fail("The test case is a prototype.");
    }
}
